package cn.zhentao.dao;

import cn.zhentao.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherDao {
//    @Select("select * from teacher")
    List<Teacher> findAll();

    List<Teacher> findByName(String tName);

    int delTeacher(int tId);

    Teacher login(@Param("tName") String tName, @Param("password") String password);

}
